package com.example.demo122.Controller;

import lombok.extern.slf4j.Slf4j;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/log")
public class LoggerController {
    private static final Logger log = LoggerFactory.getLogger(LoggerController.class);

    @RequestMapping("/getLogger")
    public String log(){
        log.info("=======");
        return "success";
    }
    @RequestMapping("/loggerLevel")
    public String logLve(){
        log.trace("====");
        log.debug("==");
        log.info("=======");
        log.warn("===");
        log.error("====");
        return "sss";
    }
}
